package com.neuedu.my12306.service.impl;

import java.util.List;

import com.neuedu.my12306.dao.IStationInfoDao;
import com.neuedu.my12306.dao.impl.IStationInfoDaoImpl;
import com.neuedu.my12306.entity.StationInfo;
import com.neuedu.my12306.service.IStationInfoService;

public class IStationInfoServiceImpl implements IStationInfoService {
	private IStationInfoDao iStationInfoDao;
	public IStationInfoServiceImpl() {
		this.iStationInfoDao = new IStationInfoDaoImpl();
	}

	@Override
	public boolean insert(StationInfo stationInfo) {
		return iStationInfoDao.insert(stationInfo);
	}

	@Override
	public int findTotal() {
		return iStationInfoDao.findTotal();
	}

	@Override
	public List<StationInfo> findStationInfos(int page, int size) {
		return iStationInfoDao.findStationInfos(page, size);
	}

	@Override
	public boolean deleteByIds(int[] ids) {
		return iStationInfoDao.deleteByIds(ids);
	}

	@Override
	public StationInfo findStationInfoById(int id) {
		return iStationInfoDao.findStationInfoById(id);
	}

	@Override
	public boolean editStationInfo(StationInfo stationInfo) {
		return iStationInfoDao.editStationInfo(stationInfo);
	}

}
